<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkCellAreaBox</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="TreeWidgetObjects.html" title="树、列表和图标网格构件">
<link rel="prev" href="gtk3-GtkCellArea.html" title="GtkCellArea">
<link rel="next" href="gtk3-GtkCellAreaContext.html" title="GtkCellAreaContext">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkCellArea.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="TreeWidgetObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkCellAreaContext.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkCellAreaBox.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkCellAreaBox.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkCellAreaBox"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkCellAreaBox.top_of_page"></a>GtkCellAreaBox</span></h2>
<p>GtkCellAreaBox — A cell area that renders GtkCellRenderers
    into a row or a column</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkCellAreaBox.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox">GtkCellAreaBox</a>;
struct              <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBoxClass" title="struct GtkCellAreaBoxClass">GtkCellAreaBoxClass</a>;
<a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="returnvalue">GtkCellArea</span></a> *       <a class="link" href="gtk3-GtkCellAreaBox.html#gtk-cell-area-box-new" title="gtk_cell_area_box_new ()">gtk_cell_area_box_new</a>               (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkCellAreaBox.html#gtk-cell-area-box-pack-start" title="gtk_cell_area_box_pack_start ()">gtk_cell_area_box_pack_start</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> *renderer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> expand</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fixed</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkCellAreaBox.html#gtk-cell-area-box-pack-end" title="gtk_cell_area_box_pack_end ()">gtk_cell_area_box_pack_end</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> *renderer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> expand</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fixed</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkCellAreaBox.html#gtk-cell-area-box-get-spacing" title="gtk_cell_area_box_get_spacing ()">gtk_cell_area_box_get_spacing</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkCellAreaBox.html#gtk-cell-area-box-set-spacing" title="gtk_cell_area_box_set_spacing ()">gtk_cell_area_box_set_spacing</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> spacing</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkCellAreaBox.description"></a><h2>Description</h2>
<p>
The <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> renders cell renderers into a row or a column
depending on its <a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a>.
</p>
<p>
GtkCellAreaBox uses a notion of <span class="emphasis"><em>packing</em></span>. Packing
refers to adding cell renderers with reference to a particular position
in a <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a>. There are two reference positions: the
<span class="emphasis"><em>start</em></span> and the <span class="emphasis"><em>end</em></span> of the box.
When the <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> is oriented in the <a class="link" href="gtk3-Standard-Enumerations.html#GTK-ORIENTATION-VERTICAL:CAPS"><code class="literal">GTK_ORIENTATION_VERTICAL</code></a>
orientation, the start is defined as the top of the box and the end is
defined as the bottom. In the <a class="link" href="gtk3-Standard-Enumerations.html#GTK-ORIENTATION-HORIZONTAL:CAPS"><code class="literal">GTK_ORIENTATION_HORIZONTAL</code></a> orientation
start is defined as the left side and the end is defined as the right
side.
</p>
<p>
Alignments of <a href="gtk3-GtkCellRenderer.html#GtkCellRenderer"><span class="type">GtkCellRenderers</span></a> rendered in adjacent rows can be
configured by configuring the <span class="type">"align"</span> child cell property
with <a class="link" href="gtk3-GtkCellArea.html#gtk-cell-area-cell-set-property" title="gtk_cell_area_cell_set_property ()"><code class="function">gtk_cell_area_cell_set_property()</code></a> or by specifying the "align"
argument to <a class="link" href="gtk3-GtkCellAreaBox.html#gtk-cell-area-box-pack-start" title="gtk_cell_area_box_pack_start ()"><code class="function">gtk_cell_area_box_pack_start()</code></a> and <a class="link" href="gtk3-GtkCellAreaBox.html#gtk-cell-area-box-pack-end" title="gtk_cell_area_box_pack_end ()"><code class="function">gtk_cell_area_box_pack_end()</code></a>.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkCellAreaBox.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkCellAreaBox"></a><h3>struct GtkCellAreaBox</h3>
<pre class="programlisting">struct GtkCellAreaBox {
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkCellAreaBoxClass"></a><h3>struct GtkCellAreaBoxClass</h3>
<pre class="programlisting">struct GtkCellAreaBoxClass {
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-cell-area-box-new"></a><h3>gtk_cell_area_box_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="returnvalue">GtkCellArea</span></a> *       gtk_cell_area_box_new               (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly created <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-cell-area-box-pack-start"></a><h3>gtk_cell_area_box_pack_start ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_cell_area_box_pack_start        (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> *renderer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> expand</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fixed</code></em>);</pre>
<p>
Adds <em class="parameter"><code>renderer</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the start of <em class="parameter"><code>box</code></em>.
</p>
<p>
The <em class="parameter"><code>renderer</code></em> is packed after any other <a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> packed
with reference to the start of <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>renderer</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> to add</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>expand</code></em> :</span></p></td>
<td>whether <em class="parameter"><code>renderer</code></em> should receive extra space when the area receives
more than its natural size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>align</code></em> :</span></p></td>
<td>whether <em class="parameter"><code>renderer</code></em> should be aligned in adjacent rows</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fixed</code></em> :</span></p></td>
<td>whether <em class="parameter"><code>renderer</code></em> should have the same size in all rows</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-cell-area-box-pack-end"></a><h3>gtk_cell_area_box_pack_end ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_cell_area_box_pack_end          (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> *renderer</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> expand</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fixed</code></em>);</pre>
<p>
Adds <em class="parameter"><code>renderer</code></em> to <em class="parameter"><code>box</code></em>, packed with reference to the end of <em class="parameter"><code>box</code></em>.
</p>
<p>
The <em class="parameter"><code>renderer</code></em> is packed after (away from end of) any other
<a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> packed with reference to the end of <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>renderer</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a> to add</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>expand</code></em> :</span></p></td>
<td>whether <em class="parameter"><code>renderer</code></em> should receive extra space when the area receives
more than its natural size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>align</code></em> :</span></p></td>
<td>whether <em class="parameter"><code>renderer</code></em> should be aligned in adjacent rows</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fixed</code></em> :</span></p></td>
<td>whether <em class="parameter"><code>renderer</code></em> should have the same size in all rows</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-cell-area-box-get-spacing"></a><h3>gtk_cell_area_box_get_spacing ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_cell_area_box_get_spacing       (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>);</pre>
<p>
Gets the spacing added between cell renderers.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the space added between cell renderers in <em class="parameter"><code>box</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-cell-area-box-set-spacing"></a><h3>gtk_cell_area_box_set_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_cell_area_box_set_spacing       (<em class="parameter"><code><a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> *box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> spacing</code></em>);</pre>
<p>
Sets the spacing to add between cell renderers in <em class="parameter"><code>box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkCellAreaBox.html#GtkCellAreaBox" title="struct GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
<td>the space to add between <a href="gtk3-GtkCellRenderer.html#GtkCellRenderer"><span class="type">GtkCellRenderers</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>